<div id="mainColumns">
	<h2>決済情報を見る</h2>
		<div class="transactionUser">
			<?php $userName ='';?>
			<h3><?php if(is_array($profile)): 
				echo  $this->User->getUsername($profile); ?> - <?php echo $profile['Profile']['headline'] ;
				endif; ?>
			</h3>
			<?php if(is_array($profile) && is_file(Configure::read('User.upload_dir_prefix').$profile['Profile']['icon_image'])): 
			echo $this->Html->image(Configure::read('User.upload_path_prefix').$profile['Profile']['icon_image'], array('alt' => '', 'class' => 'user_icon'));
			else:
				echo $this->Html->image(Configure::read('User.default_icon_image'), array('alt' => ''));
			endif; ?>
			<div class="halfBox">
				<p>参加したクラス数 <span class="num"><?php echo $enteredClassNumber; ?></span></p>
				<p>参加予定のクラス数 <span class="num"><?php echo $attendClassNumber; ?></span></p>
			</div>
		</div>
		<?php echo $this->element('transactions', array('transactions' => $transactions, 'userName' => $userName)); ?>
</div>
<div id="subColumns">
	<form action="">
		<div class="section">
			<div class="rows select">
				<p>検索結果数</p>
				<select name="limit" id="search_result_num">
					<option value="25" <?php if(isset($this->params['url']['limit']) && $this->params['url']['limit'] == 25){ echo "selected";}  ?> >25</option>
					<option value="50" <?php if(isset($this->params['url']['limit']) && $this->params['url']['limit'] == 50){ echo "selected";}  ?> >50</option>
					<option value="100" <?php if(isset($this->params['url']['limit']) && $this->params['url']['limit'] == 100){ echo "selected";}  ?> >100</option>
				</select>
			</div>
		</div>
		<div class="section">
			<div class="rows" id="payment">
				<p>決済ステータス</p>
				<input type="radio" name="payment" id="" value="0" <?php if(isset($this->params['url']['payment']) && $this->params['url']['payment'] == 0){ echo "checked";}  ?> /> 失敗<br />
				<input type="radio" name="payment" id="" value="1" <?php if(isset($this->params['url']['payment']) && $this->params['url']['payment'] == 1){ echo "checked";}  ?> /> 成功<br />
				<input type="radio" name="payment" id="" value="" <?php if(!isset($this->params['url']['payment']) || (isset($this->params['url']['payment']) && $this->params['url']['payment'] == '')){ echo "checked";}  ?> /> 全てのクラス
			</div>
		</div>
		<div class="section">
			<div class="rows" id="payment">
				<p>決済ステータス</p>
				<input type="radio" name="delete" id="" value="0" <?php if(!isset($this->params['url']['delete']) || (isset($this->params['url']['delete']) && $this->params['url']['delete'] == 0)){echo "checked=''";} ?> /> 削除を取り消す<br />
				<input type="radio" name="delete" id="" value="1" <?php if(isset($this->params['url']['delete']) && $this->params['url']['delete'] == 1){ echo "checked=''";} ?> /> 削除済み<br />
			</div>
		</div>
		
		<input type="submit" value="検索" />
	</form>
</div>